package com.panopset.swing;

import java.io.File;
import java.io.IOException;

import com.panopset.Util;
import com.panopset.UtilIO;
import com.panopset.centralen.resource.Favicon;

/**
 * Panopset default application.
 *
 * @author Karl Dinwiddie
 *
 */
public abstract class AppPanopset extends App {

    public AppPanopset() {
        super(new Favicon(Favicon.PANOPSET_ICON_PATH));
        try {
            Scaffolding.s.setHome(new File(
                    UtilIO.combinePaths(
                    UtilIO.combinePaths(UtilIO.getHome(), "panopset"),
                    getApplicationName()
                    )));
        } catch (IOException e) {
            Util.log(e);
        }
    }
}
